package chapter02

import scala.io.StdIn

/**
 * Created with IntelliJ IDEA.
 * ClassName: Test05
 * Package: chapter02
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 *          Date: 2023-06-17
 *          Time: 14:42
 */

//键盘输入
object Test05 {
  def main(args: Array[String]): Unit = {
    //信息输入
    println("请输入大名: ")
    val name: String = StdIn.readLine()
    println("请输入年龄: ")
    val age: Int = StdIn.readInt()

    println(s"欢迎${age}岁的${name}来学习Scala")
  }
}
